<?php
/* to set with mail of user */
if (isset($_POST['mail']) && !empty($_POST['mail']) && isset($_POST['message']) && !empty($_POST['message'])) {
	$to = "loic.sterckx@gmail.com";
	$subject = "Contact depuis lawresolution";
	$body = "De : \n" . $_POST['mail'] . "\n\n" . "Message : \n" .$_POST["message"];
	if (mail($to, $subject, $body)) {
		return true;
	} else {
		return false;
	}
} else {
	return false;
}
?>